package com.springboot.rmq.comm;

import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(
        prefix = "rmq.producer"
)
public class ProducerProperties {
    /**
     * nameserver服务器地址
     */
    private String nameServer;

    /**
     * 组名称
     */
    private String groupName;

    /**
     * topic队列大小
     */
    private String topicQueueNum;

    /**
     * 超时时间配置,毫秒
     */
    private String timeOutMils;

    /**
     * 生产者实例名称
     */
    private String instanceName;

    /**
     * 生产者异步消息发送失败，重发次数
     */
    private String retryTimesWhenSendAsyncFailed;

    /**
     * 生产者同步消息发送失败，重发次数
     */
    private String retryTimesWhenSendFailed;

    /**
     * VIP频道发送消息
     */
    private String sendMessageWithVIPChannel;

    public String getNameServer() {
        return nameServer;
    }

    public void setNameServer(String nameServer) {
        this.nameServer = nameServer;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getTopicQueueNum() {
        return topicQueueNum;
    }

    public void setTopicQueueNum(String topicQueueNum) {
        this.topicQueueNum = topicQueueNum;
    }

    public String getTimeOutMils() {
        return timeOutMils;
    }

    public void setTimeOutMils(String timeOutMils) {
        this.timeOutMils = timeOutMils;
    }

    public String getInstanceName() {
        return instanceName;
    }

    public void setInstanceName(String instanceName) {
        this.instanceName = instanceName;
    }

    public String getRetryTimesWhenSendAsyncFailed() {
        return retryTimesWhenSendAsyncFailed;
    }

    public void setRetryTimesWhenSendAsyncFailed(String retryTimesWhenSendAsyncFailed) {
        this.retryTimesWhenSendAsyncFailed = retryTimesWhenSendAsyncFailed;
    }

    public String getRetryTimesWhenSendFailed() {
        return retryTimesWhenSendFailed;
    }

    public void setRetryTimesWhenSendFailed(String retryTimesWhenSendFailed) {
        this.retryTimesWhenSendFailed = retryTimesWhenSendFailed;
    }

    public String getSendMessageWithVIPChannel() {
        return sendMessageWithVIPChannel;
    }

    public void setSendMessageWithVIPChannel(String sendMessageWithVIPChannel) {
        this.sendMessageWithVIPChannel = sendMessageWithVIPChannel;
    }
}
